/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.student.tp3assignment2.dipviolate.Impl;

import com.student.tp3assignment2.dipviolate.BankAccount;
/**
 *
 * @author Student
 */
public class TransferManager {
    BankAccountImpl source;
    BankAccountImpl destination;
    double value;

    public void Transfer()
    {
        source.RemoveFunds(value);
        destination.AddFunds(value);
    }

    public void SetSource(BankAccountImpl source)
    {
        this.source = source;
    }

    public BankAccountImpl GetSource()
    {
        return source;
    }

    public void SetDestination(BankAccountImpl destine)
    {
        destination = destine;
    }

    public BankAccountImpl GetDestination()
    {
        return destination;
    }

    public void SetValue(double value)
    {
        this.value = value;
    }

    public double GetValue()
    {
        return value;
    }
}
